public class NullPtrType extends PointerType {

	public NullPtrType() {
		super("nullptr");
	}
	
	@Override
	public String getName() {
		return "nullptr";
	}
	
	@Override
	public boolean isNullPtrType() {
		return true;
	}
	
	@Override
	public boolean isAssignableTo(Type t) {
		if(t.isPointerType() || t.isFuncPtrType()) {
			return true;
		}
		return false;
	}
	
	@Override
	public boolean isEquivalentTo(Type t) {
		if(t.isNullPtrType()) {
			return true;
		}
		return false;
	}
}
